<template>
  <div class="msite-swiper">
    <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
      <van-swipe-item v-for="item in listData" :key="item.id">
        <img :src="item.imgSrc" alt="">
      </van-swipe-item>
    </van-swipe>
  </div>
</template>
<script>
export default {
  name: "msiteSwiper",
  props: {
    listData: Array
  },
  data() {
    return {
    };
  },
  mounted() {
  },
  methods: {
  }
};
</script>

<style lang="scss" scoped>
.my-swipe .van-swipe-item {
  color: #fff;
  font-size: 20px;
  height: 150px;
  line-height: 150px;
  text-align: center;
  background-color: $color;
  img {
    width: 100%;
    height: 100%;
  }
}
// .van-swipe-item {
//   width: 200px;
//   height: 100px;
//   background-color: #eee;
// }
</style>